package com.tiyende.kash.loop.sdk.dec.userdec

import android.content.Context
import com.google.gson.Gson
import com.tiyende.kash.loop.sdk.dec.userdec.TiyendeUserDecDataUtils.getUserDec58

/**
 * wifi
 */
class TiyendeUserDecType5(val context: Context) {

    fun getUserDecType5Data(): String? {
        return try {
            val data = hashMapOf<String, Any>().apply {
                put("currentWifi", TiyendeUserDecDataUtils.getUserDec38(context))
                put("configuredWifi", "")
                put("wifiCount", "")
            }
            Gson().toJson(data).trim().getUserDec58()

        } catch (e: Exception) {
            null
        }
    }
}